export default function (url, body) {
  return fetch(url,
    { method: 'post',
      headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
      body,
      credentials: 'include' }).then(res => res.json()).then(res => res)
}
